{layout name="layout" /}
<div class="row">
    <div class="col-md-12">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title"><i class="fa fa-user"></i> 新增用户</h3>
            </div>
            <form class="form-horizontal" method="post" action="_ROOT_/admin/sysuser/save"
                  enctype="multipart/form-data">
                <div class="box-body">
                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">姓名：</label>
                        <div class="col-sm-9">
                            <input type="text" maxlength="20" class="form-control" name="name" id="name"
                                   placeholder="姓名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="username" class="col-sm-2 control-label">用户名：</label>
                        <div class="col-sm-9">
                            <input type="text" maxlength="20" class="form-control" name="username" id="username"
                                   placeholder="用户名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="password" class="col-sm-2 control-label">密码：</label>
                        <div class="col-sm-9">
                            <input type="password" maxlength="15" class="form-control" name="password" id="password"
                                   placeholder="密码"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="phone" class="col-sm-2 control-label">手机号：</label>
                        <div class="col-sm-9">
                            <input type="tel" class="form-control" id='phone' name="phone" placeholder="手机号"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="email" class="col-sm-2 control-label">邮箱：</label>
                        <div class="col-sm-9">
                            <input type="tel" max="11" class="form-control" id='email' name="email"
                                   placeholder="电子邮箱" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="sex">性别：</label>
                        <div class="col-sm-9">
                            <select id="sex" name="sex" class='form-control'>
                                <option value="">请选择</option>
                                <option value="0">男</option>
                                <option value="1">女</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="status">状态：</label>
                        <div class="col-sm-9">
                            <select id="status" name="status" class='form-control'>
                                <option value="">请选择</option>
                                <option value="1">启用</option>
                                <option value="0">禁用</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">头像：</label>
                        <div class="col-sm-9">
                            <div class='upload-thumb-wrap hdrimages' style='overflow:hidden;'>
                                <div class='upload-thumb'>
                                    <input type='file' name="avatar"/>
                                    <a href='javascript:;'>上传</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注：</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" maxlength="255"
                                      name="remark" rows="5" placeholder="备注"></textarea>
                        </div>
                    </div>
                </div>
                <div class="box-footer" style="text-align: right">
                    <a href="_ROOT_/admin/sysuser/index" type="button" class="btn btn-default">返回</a>
                    <button type="submit" class="btn btn-primary" style="margin-left: 5px;">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
